package test.lambda;

public class FunctionInterfaceWidthWxception {

    public static void main(String[] args) {

        InterfaceWithException target = i -> {};
        try {
            target.apply(10);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}

@FunctionalInterface
interface InterfaceWithException {
    void apply(int i) throws Exception;
}
